package com.agent.rag;

import com.agent.commons.utils.MailUtil;
import com.agent.commons.utils.MinIOUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@SpringBootApplication
@MapperScan("com.agent.rag.mapper")
@ComponentScan(basePackages = {"com.agent.commons","com.agent.rag"},
        //排除commons中不需要自动配置的Bean
        excludeFilters = @ComponentScan.Filter (type = FilterType.ASSIGNABLE_TYPE,classes = {MailUtil.class} ))
public class AgentRagApplication {

    public static void main(String[] args) {
        SpringApplication.run(AgentRagApplication.class, args);
    }

}
